package com.gm.dao.role;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.gm.model.po.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IRoleDao {
    int deleteByPrimaryKey(Integer id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    List getRoleListPage(@Param("pageBounds") PageBounds pageBounds);

    /**
     * 获取所有角色
     * @return
     */
    List<Role> getRoleAll();

}